<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>美好生活</title>
    <link rel="stylesheet" type="text/css" href="../../static/admin/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="../../static/admin/css/admin.css"/>
</head>
<body>
<div class="wrap-container" title="信息登记">
    <form class="layui-form" style="width: 90%;padding-top: 20px;">
        <div class="layui-form-item" hidden>
            <div class="layui-input-block">
                <input type="text" name="userId" required lay-verify="required" placeholder="请输入会员ID" autocomplete="off"
                       class="layui-input" value="00001" hidden>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">会员名称：</label>
            <div class="layui-input-block">
                <input type="text" name="nickName" required lay-verify="required" placeholder="请输入会员名称" autocomplete="off"
                       class="layui-input" value="固始小奶狗">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">车牌号：</label>
            <div class="layui-input-block">
                <input type="text" name="carNum" required lay-verify="required" placeholder="请输入车牌号" autocomplete="off"
                       class="layui-input" value="豫S-12345">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">家庭地址：</label>
            <div class="layui-input-block">
                <input type="text" name="address" required lay-verify="required" placeholder="请输入家庭地址" autocomplete="off"
                       class="layui-input" value="固始-胡族街道1201号">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否VIP：</label>
            <div class="layui-input-block">
                <input type="radio" name="vipStatus" value="1" title="是" checked>
                <input type="radio" name="vipStatus" value="0" title="否">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="desc" placeholder="请输入备注" class="layui-textarea">这个人不得了，家里有猪！</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script src="../../static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script>
    //Demo
    layui.use(['form'], function () {
        var form = layui.form();
        form.render();
        //监听提交
        form.on('submit(formDemo)', function (data) {
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>

</html>